Telegram Group & Telegram Channel
Задача с кодом. Допишите до точки!

Представьте, что вы на экзамене. Время вышло, преподаватель говорит дописать предложение до точки и сдать работу.

Допустим, написание одной буквы занимает 0,5 с (пробелы не учитываем).

Напишите функцию, которая будет принимать полное и недописанное предложение, а возвращать время, необходимое на дописывание (в секундах).

Разбор примера

time_to_finish(
"And so brings my conclusion to its conclusion.",
"And so brings my conclusion to"
) ➞ 7


# "its" - это 3 символа
# "conclusion." - 11 символов, включая точку
# 11 + 3 = 14
# 14 x 0.5 = 7
# Помните, что пробелы не учитываются.

Другие примеры и варианты решения - на нашем сайте.

#задача #coding



tg-me.com/pythonist_ru/2408
Create:
Last Update:

Задача с кодом. Допишите до точки!

Представьте, что вы на экзамене. Время вышло, преподаватель говорит дописать предложение до точки и сдать работу.

Допустим, написание одной буквы занимает 0,5 с (пробелы не учитываем).

Напишите функцию, которая будет принимать полное и недописанное предложение, а возвращать время, необходимое на дописывание (в секундах).

Разбор примера

time_to_finish(
"And so brings my conclusion to its conclusion.",
"And so brings my conclusion to"
) ➞ 7


# "its" - это 3 символа
# "conclusion." - 11 символов, включая точку
# 11 + 3 = 14
# 14 x 0.5 = 7
# Помните, что пробелы не учитываются.

Другие примеры и варианты решения - на нашем сайте.

#задача #coding

BY Pythonist.ru - образование по питону


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonist_ru/2408

View MORE
Open in Telegram


Pythonist ru образование по питону Telegram | DID YOU KNOW?

Date: |

What is Secret Chats of Telegram

Secret Chats are one of the service’s additional security features; it allows messages to be sent with client-to-client encryption. This setup means that, unlike regular messages, these secret messages can only be accessed from the device’s that initiated and accepted the chat. Additionally, Telegram notes that secret chats leave no trace on the company’s services and offer a self-destruct timer.

In many cases, the content resembled that of the marketplaces found on the dark web, a group of hidden websites that are popular among hackers and accessed using specific anonymising software.“We have recently been witnessing a 100 per cent-plus rise in Telegram usage by cybercriminals,” said Tal Samra, cyber threat analyst at Cyberint.The rise in nefarious activity comes as users flocked to the encrypted chat app earlier this year after changes to the privacy policy of Facebook-owned rival WhatsApp prompted many to seek out alternatives.Pythonist ru образование по питону from in


Telegram Pythonist.ru - образование по питону
FROM USA